package com.jkl.service.drTable.inter;


import java.util.List;

import com.github.pagehelper.PageInfo;
import com.jkl.entity.bsAddition.BsAddition;
import com.jkl.entity.bsWorkflowLog.BsWorkflowLog;
import com.jkl.entity.drIndex.DrIndex;
import com.jkl.entity.drIndexFormula.DrIndexFormula;
import com.jkl.entity.drTable.DrTable;
import com.jkl.entity.drTableDetail.DrTableDetail;
import com.jkl.entity.drTemplate.DrTemplate;
import com.jkl.entity.drTemplateDetail.DrTemplateDetail;

public interface DrTableServiceInterface {
	
	//查询上报主表
	PageInfo<DrTable> drTableById(DrTable drTable);
	//重复查询  和生成表查询 
	PageInfo<DrTable> drTableList(DrTable drTable);
	//插入
	String drTablesave(DrTable drTable);
	//修改
	int updateDrTable(DrTable drTable);
	//删除
	int deleteDrTable(DrTable drTable);
	
	//修改状态
	int updateWorkflowCode (DrTable drTable);
	//修改是否启用(删除)
	int updateStatus (DrTable drTable);
	
	//table删除
	int deleteTable(int param);
	int addTable(DrTable drTable);
	int addTableDetail(DrTableDetail tabledeta);
	DrTemplate queryTemplate(int id);
	int addTemplate(DrTemplate template);
	int setTemplateDetailStatus(int id);
	void addTemplateDetails(List<DrTemplateDetail> templateDetails);
	DrTemplateDetail queryTemplateDetail(int tableId,String indexCode);
	void addTemplateDetail(DrTemplateDetail templateDetail);
	int setTemplateDetailStatus2(int id);
	DrIndex queryIndex(int id);
	int addIndex(DrIndex index);
	int updateIndex(DrIndex index);
	DrIndexFormula queryIndexFormula(int id);
	int addIndexFormula(DrIndexFormula indexformu);
	int updateIndexFormula(DrIndexFormula indexformu);
	BsWorkflowLog[] queryworkflowLogs(int id);
	BsAddition queryBsAddition(int id);
	DrTableDetail[] queryTableDetails(int id);
	DrTable queryTable(int id);
	int updateTable(DrTable table);
	DrTableDetail queryTableDetail(int id);
	int addBsWorkflowLog(BsWorkflowLog bsWorkflowLog);
	int updateTableLog(int id);
}
